using MemoryPack;

namespace Game {
	[MemoryPackable]
	public sealed partial class DebrisItem : BaseInventoryItem<DebrisItem> {
		public DebrisItem() {
			ItemType = InventoryItemType.Debris;
		}

		public override string ItemName {
			get {
				if ( _nameString == null ) {
					_nameString = "debris";
				}
				return _nameString;
			}
		}

		public override bool IsEqualKind(BaseInventoryItem item) {
			if ( !base.IsEqualKind(item) ) {
				return false;
			}
			var cast = (DebrisItem)item;
			if ( cast == null ) {
				return false;
			}
			return true;
		}

		protected override DebrisItem CreateCopy(int count) {
			var copy = base.CreateCopy(count);
			return copy;
		}
	}
}
